package org.coldlife.sim.grav;

import java.io.IOException;

import org.coldlife.sim.grav.settings.SettingsManager;

public class GravSimLauncher 
{
	
	public static void main(String[] args) throws IOException
	{
		GravSim gravSim = new GravSim();
		
		SettingsManager settings = new SettingsManager();
		settings.loadSettings();
		
		gravSim.setNum_particles(settings.getInt(SettingsManager.NUM_PARTICLE));
		gravSim.setSizeX(settings.getInt(SettingsManager.WINDOW_WIDTH));
		gravSim.setSizeY(settings.getInt(SettingsManager.WINDOW_HEIGHT));
		
		gravSim.startSim();
		gravSim.initDisplay();
		gravSim.startDisplay();
	}
}
